Table of Contents
- Getting Started
- EO.Pdf
- Overview
- Installation and Deployment
- Using HTML to PDF
- Using PDF Creator
- Using PDF Creator
- Getting Started
- Advanced Formatting Techniques
- Interactive Features
- Low Level Content Objects
- Working with Existing PDF Files
- Using in Web Application
- Advanced Topics
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
Document Information |
Overview
You can set documentation information such as title, author through the PdfDocument object's Info property, or set the document's viewer preference through the PdfDocument object's ViewerPreference.
Using Info property
The PdfDocument's Info exposes a number of properties for you to set the document's title, author, keywords, etc. Simply set the property to update the corresponding document information:
//Set the document title doc.Info.Title = "Sample PDF File"; //Set the document creator doc.Info.Creator = "Essential Objects";
See PdfDocInfo class reference for a list of all available document information properties.
Using ViewerPreference property
The PdfDocument's ViewerPerference exposes a number of properties that allows you to set the document's viewer preference such as whether to hide toolbar or menu bar. Simply set the corresponding property to change the preference:
//Hide toolbar doc.ViewerPreference.HideToolbar = true;
See PdfViewerPerference class reference for a list of all available viewer preference properties.